<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--360浏览器优先以webkit内核解析-->
<title> - 衡器列表</title>
<link rel="shortcut icon" href="/profile/imgs/favicon.ico">
<link href="../static/css/bootstrap.min.css"
	th:href="@{/css/bootstrap.min.css}" rel="stylesheet" />
<link href="../static/css/font-awesome.min.css"
	th:href="@{/css/font-awesome.min.css}" rel="stylesheet" />
<link href="../static/css/style.min.css" th:href="@{/css/style.min.css}"
	rel="stylesheet" />
</head>

<body class="gray-bg">
	<div class="wrapper wrapper-content animated" style="padding: 10px;">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox-title">
					<h5>衡器列表</h5>
				</div>
			</div>
		</div>
	</div>
	<div class="wrapper wrapper-content animated fadeInRight" style="padding: 0px 10px 10px 10px;">
		<div class="row">
			<div th:each='o,stat:${waList}' class="col-sm-3">
				<div class="ibox" th:style="${o.alarmNum}>0?'border: solid 1px #ff6316;':'border: solid 1px #B9D3EE;'">
					<div class="ibox-title">
						<div class="col-sm-10 text-left">
							<h5><a th:href="@{/realtime/waState(waCode=${o.wacode})}" target="blank">[[${o.waname}]]([[${o.wacode}]])</a></h5>
						</div>
						<div class="col-sm-2 text-right">
							<h5 title="24小时内告警次数" th:if="${o.alarmNum>0}" style="color:#ff6316;">[[${o.alarmNum}]]</h5>
						</div>
					</div>
					<div class="ibox-content" align="center" th:style="${o.alarmNum}>0?'background-color: #FFF8DC;height: 200px;padding: 0px 20px 20px 20px;':'height: 200px;padding: 0px 20px 20px 20px;'">
						<!-- <div class="row  m-t-sm">
							<div class="col-sm-4">
								<div class="font-bold">上次巡检</div>
								2022-01-01
							</div>
							<div class="col-sm-4">
								<div class="font-bold">下次巡检</div>
								2022-01-01
							</div>
							<div class="col-sm-4 text-right">
								<div class="font-bold"><a th:href="@{/realtime/washow(waCode=${o.wacode})}" target="blank">下发任务</a></div>
							</div>
						</div> -->
						<a th:href="@{/realtime/washow(waCode=${o.wacode})}" target="blank"><img width="280px" th:src="${o.d3_annex}"></a>
					</div>
				</div>
			</div>
		</div>
	</div>
    <script th:inline='javascript'>
	  document.title = [[${name}]] + document.title;
    </script>
</body>
</html>
